package routers

import (
	"github.com/astaxie/beego"
	"qinnailin.cn/cloudnote/controllers/home"
	"qinnailin.cn/cloudnote/controllers/user"
)

func init() {
	beego.Router("/", &home.HomeController{}, "*:Index")
	beego.Router("/article/edit", &home.HomeController{}, "get:Edit;post:DoEdit")
	beego.Router("/article", &home.HomeController{}, "*:Articles")
	beego.Router("/articles", &home.HomeController{}, "*:GetArticles")
	beego.Router("/articlet", &home.HomeController{}, "*:GetArticleBg")
	beego.Router("/upload", &home.HomeController{}, "*:Upload")
	beego.Router("/article/detail", &home.HomeController{}, "*:Detail")
	beego.Router("/group", &home.GroupController{}, "*:GetGList")
	//beego.Router("/group/add", &home.GroupController{}, "*:Add")
	beego.Router("/group/save", &home.GroupController{}, "*:Save")
	beego.Router("/group/del", &home.GroupController{}, "*:Remove")

	beego.Router("/user/has", &user.UserController{}, "*:Has")
	beego.Router("/user/regedit", &user.UserController{}, "*:Regedit")

}
